$ () ->
	pageUrl =
			wechat_user_list: "/admin/wechat-user/index"
			wechat_doctor_list: "/admin/wechat-doctor/index"
			user_list: "/admin/user/index"
			create_user: "/admin/user/create"
			log: "/admin/log/index"
			
	for key,value of pageUrl
		if window.location.pathname is value
			$("#"+key).addClass("click-now")

	$(".child").click (e) ->
		
		for key,value of pageUrl
			if key is this.id
				jumpUrl = key
				break
		return window.location.href =pageUrl[jumpUrl]
